package cz.zcu.fav.rat.dataaccess.dao;

import java.util.List;

import cz.zcu.fav.rat.beans.User;

public interface UserDAO extends GenericDAO<User, Integer>
{
	List<User> findBySurname(String name);
	
//    @Transactional(readOnly = true)
    List<User> findByNickname(String nickname);
	
	List<String> getRolesByNickname(String nickname);
	
//    @Transactional(readOnly = true)
	List<User> findByNicknameAndImplementor(String nickname, String implementor);
	List<User> findUsersByFavouriteId(Integer favouriteId);
	List<User> findIfUserHasFavouriteId(Integer userId, Integer objectId);
}
